/**
 * 
 */
package com.roshan.web.dto;

import java.io.Serializable;

/**
 * Placeholder for common response related fields.
 * 
 * @author Dilshan Thambawita
 */
public abstract class StatusDetail implements Serializable {

    /** The Constant serialVersionUID. */
    private static final long serialVersionUID = 110L;

    /** The status code. */
    private int statusCode;

    /**
     * Gets the status.
     * 
     * @return the status
     */
    public WSCommunicationStatus getStatus() {
        return WSCommunicationStatus.valueOf(this.statusCode);
    }

    /**
     * Sets the status code.
     * 
     * @param statusCode the new status code
     */
    public void setStatusCode(int statusCode) {
        this.statusCode = statusCode;
    }

    /*
     * (non-Javadoc)
     * 
     * @see java.lang.Object#toString()
     */
    @Override
    public String toString() {
        return "StatusDetail [statusCode=" + statusCode + "]";
    }

}
